package com.zhixing.order.domain.entity;

import com.alibaba.fastjson2.JSONArray;
import com.zhixing.order.domain.enums.OrderStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    private Long id;
    private String orderNumber;
    private Integer userId;
    private Integer driverId;
    private Integer couponId;
    private String cityCode;
    private String startLocation;
    private String endLocation;
    private BigDecimal startLongitude;
    private BigDecimal startLatitude;
    private BigDecimal endLongitude;
    private BigDecimal endLatitude;
    private JSONArray estimatePolyline;
    private JSONArray realPolyline;
    private BigDecimal estimateDistance;
    private BigDecimal realDistance;
    private Integer estimateDuration;
    private Integer realDuration;
    private BigDecimal estimateFee;
    private BigDecimal realFee;
    private BigDecimal realPayment;
    private BigDecimal estimateIncome;
    private BigDecimal realIncome;
    private OrderStatus orderStatus;
    private LocalDateTime submitTime;
    private LocalDateTime receiveTime;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
}
